package com.qhy.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.qhy.service.IProjectTypeService;

@Controller
public class JspController {
	
	@Resource
	private IProjectTypeService service;
	
	@RequestMapping("{path}.do")
	public String index(HttpServletRequest request ,@PathVariable String path){
		request.getSession().setAttribute("all_type", service.query(null));
		return path;
	}

}
